package com.ajie.controller;

import com.ajie.entity.SysPermission;
import com.ajie.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

@RestController
@Api(value = "测试接口")
public class TestController {


    @ApiOperation(value = "测试test")
    @PreAuthorize("hasAuthority('USER_DELETE')")
    @PostMapping("/test")
    public Result test(@RequestParam("a") String a,@RequestBody SysPermission permission){
    
        System.out.println(a+permission);
        return Result.success("信息返回成功11111111","你好！");
    }
    
}
